package tianqi.controller.product;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import tianqi.service.product.ProductdetailService;
import tianqi.service.product.impl.ProductdetailServiceImpl;


@Controller
public class ProductDetail {
	
	@Autowired
	private ProductdetailServiceImpl productdetailServiceImpl;
	
	@RequestMapping("/shopDetail")
	public String showProductDetail(String proId,Model m){
		
		return productdetailServiceImpl.queryDetailById(proId, m);
	}
//	@RequestMapping("/productDetail")
//	public String showProductDetail(Model m){
//		
//		return "youger_xq";
//	}
}
